<template>
  <div class="customer-service">
    <div class="header">
      <div class="role">树懒{{ staffInfo.privateStatue ? "VIP专属" : "" }}客服</div>
      <el-avatar :size="130" :src="staffInfo.headImg">
        <i class="el-icon-s-custom"></i>
      </el-avatar>
    </div>
    <div class="info">
      <div class="info-item">
        <i class="iconfont iconzhuanshu fs-xxl"></i>
        <span class="fs-l">{{ staffInfo.userName }}</span>
      </div>
      <div class="info-item">
        <i class="iconfont icondianhua1 fs-xxl"></i>
        <span class="fs-l">{{ staffInfo.serviceMobile }}</span>
      </div>
    </div>
    <div class="tip">
      <p>服务介绍</p>
      <p>周一至周日全天等你来电</p>
      <p>在线问题、功能培训、充值服务、企业合作等</p>
    </div>
  </div>
</template>

<script>
import { mapGetters } from "vuex";
export default {
  name: "CustomerService",
  data() {
    return {};
  },
  computed: {
    ...mapGetters(["staffInfo"]),
  },
};
</script>

<style lang="scss" scoped>
.customer-service {
  padding-bottom: 20px;
  background-color: #fff;

  .header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #333;
    padding: 24px 0;

    .role {
      padding-bottom: 10px;
      font-weight: 400;
      font-size: 20px;
      color: #fff4dc;
    }

    .el-icon-s-custom {
      font-size: 60px;
    }
  }

  .info {
    padding: 20px 20px 0;

    .info-item {
      margin-bottom: 8px;
      padding-left: 20px;
      border-radius: 46px;
      height: 46px;
      line-height: 46px;
      background-color: #f3f3f3;

      span {
        margin-left: 10px;
      }
    }
  }

  .tip {
    padding: 10px 30px 0;
    color: #808080;
    line-height: 1.7;
    font-size: 14px;

    p {
      margin: 0;
    }
  }
}
</style>
